//
//  SEGFindMeQuizListModel.m
//  ExcellentHome
//
//  Created by Sam on 16/8/31.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import "SEGFindMeQuizListModel.h"

@implementation SEGFindMeQuizListModel
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    id obj = [[self alloc] init];
    [obj setValuesForKeysWithDictionary:dictionary];
    return obj;
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
}

- (void)setValue:(id)value forKey:(NSString*)key
{

    if ([key isEqualToString:@"meSeekHelpQuizList"]) {
        NSMutableArray* _arrM = [NSMutableArray array];
        for (NSDictionary* dict in value) {
            SEGFindQuizListByQuizTypeModel* model = [SEGFindQuizListByQuizTypeModel initWithDictionary:dict];
            [_arrM addObject:model];
        }
        self.meSeekHelpQuizList = _arrM.copy;
        return;
    }

    if ([key isEqualToString:@"meHelpQuizList"]) {
        NSMutableArray* _arrM = [NSMutableArray array];
        for (NSDictionary* dict in value) {
            SEGFindQuizListByQuizTypeModel* model = [SEGFindQuizListByQuizTypeModel initWithDictionary:dict];
            [_arrM addObject:model];
        }
        self.meHelpQuizList = _arrM.copy;
        return;
    }

    [super setValue:value forKey:key];
}

@end
